package me.shep.wishlist.client;

import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

public class DesiredItem implements IsSerializable {
	public int id;
	public String name;
	public String url;
	public String description;
	public String whoAddedIt;
	public String whoWantsIt;
	public boolean wanterCanSee;
	public String whoPurchasedIt;
	public Date dateAdded;
	public Date getDateAdded() {
		return dateAdded;
	}
	public void setDateAdded(Date dateAdded) {
		this.dateAdded = dateAdded;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public boolean isWanterCanSee() {
		return wanterCanSee;
	}
	public void setWanterCanSee(boolean wanterCanSee) {
		this.wanterCanSee = wanterCanSee;
	}
	public String getWhoAddedIt() {
		return whoAddedIt;
	}
	public void setWhoAddedIt(String whoAddedIt) {
		this.whoAddedIt = whoAddedIt;
	}
	public String getWhoPurchasedIt() {
		return whoPurchasedIt;
	}
	public void setWhoPurchasedIt(String whoPurchasedIt) {
		this.whoPurchasedIt = whoPurchasedIt;
	}
	public String getWhoWantsIt() {
		return whoWantsIt;
	}
	public void setWhoWantsIt(String whoWantsIt) {
		this.whoWantsIt = whoWantsIt;
	}

}

/*
CREATE TABLE `desiredItems` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(80) NOT NULL,
  `url` varchar(100) NULL,
  `description` varchar(300) NULL,
  `whoAddedIt` int(10) unsigned NOT NULL,
  `whoWantsIt` int(10) unsigned NOT NULL,
  `wanterCanSee` tinyint(1) NOT NULL default '0',
  `whoPurchasedIt` int(10) unsigned NULL,
  `dateAdded` timestamp NOT NULL default CURRENT_TIMESTAMP,
  PRIMARY KEY (id)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

*/